/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.Toto.question2.composition_config;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.Toto.question2.service.Car;
import za.ac.cput.Toto.question2.service.internal.DriveCar;



/**
 *
 * @author 210012285
 */
@Configurable
public class AppConfig {
    
    @Bean(name = "car")
    public Car car()
    {
        return new DriveCar();
    }
    

    
}
